package com.aaron.study.auth.controller;

import java.security.Principal;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author aaron
 */
@RestController
public class UserController {

	@GetMapping(value = "/current")
	public Principal getUser(Principal principal) {
		return principal;
	}
}
